<?php
use Illuminate\Database\Seeder;

class LinksTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     * @return void
     */
    public function run()
    {
        $now = date('Y-m-d H:i:s');
        DB::table('linktags')->insert([
            'tag' => '友情链接',
        ]);
        DB::table('links')->insert([
            'name' => '百度一下',
            'url' => 'https://www.baidu.com',
            'pic1' => '',
            'status' => 1,
            'created_at' => $now,
            'updated_at' => $now,
        ]);
        DB::table('link_tag')->insert([
            'link_id' => 1,
            'tag_id' => 1,
        ]);
    }
}
